/**
 * @Author: Your name
 * @Date:   2023-02-13 15:27:22
 * @Last Modified by:   Your name
 * @Last Modified time: 2023-02-16 17:49:18
 */
const express = require("express");
const encryption = require("../utils/encryption");
const userRouter = express.Router();

userRouter.post("/login",(req,res,next)=>{
    console.log("login");
    let username = req.body.username;
    let password = req.body.password;
    res.json({
        "status":1,
        "token":encryption.md5(username+password+"")
    })
    res.end();
})

module.exports = userRouter